package ve.com.ucv.changedetection.objects;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Jose Manuel Aguirre
 * Date: 13/11/12
 * Time: 11:30 AM
 * To change this template use File | Settings | File Templates.
 */
public class HashTable {
    ArrayList<HashRow> hashTable;


    //hashTable.
    public HashTable(){
        this.hashTable = new ArrayList<HashRow>();
    }

    public ArrayList<HashRow> getHashTable() {
        return hashTable;
    }

    public void setHashTable(ArrayList<HashRow> hashTable) {
        this.hashTable = hashTable;
    }

    public void setRow(HashRow row){
        this.hashTable.add(row);
    }

    public HashRow getRow(int index){
        return this.hashTable.get(index);
    }

    public void deleteRow(int index){
        hashTable.remove(index);
    }
}
